#!/bin/bash
#echo '$0='$0
#echo '$(dirname $0) = '$(dirname $0)
#echo '$(cd $(dirname $0);pwd)='$(cd $(dirname $0);pwd)
#for file in $(cd $(dirname $0);pwd)/*
#do
#  if [ -d "$file" ]
#  then
#    echo $file
#  fi
#done


#function getdir(){
#    for file in $1
#    do
#        if [ -d "$file" ]
#        then
#            cd "$file"
#            getdir $file/*
#        else
#            protoc --go_out=. --go-grpc_out=. $file
#            echo $file
#        fi
#    done
#}
#getdir "$(cd $(dirname $0);pwd)/protos/*"
protoc --go_out=. --go-grpc_out=. protos/*.proto